﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GA_Scheduler
{
    class Program
    {
        static void Main(string[] args)
        {
            //Configuration conf = new Configuration();
           // Configuration.Instance.ParseFile(@"C:\Documents and Settings\Administrator\My Documents\Downloads\GalDemoApps\GaSchedule.cfg");

            var alg = Algorithm.GetInstance();
            alg.NewBestSchedule += new EventHandler<AlgorithmEventArgs>(alg_NewBestSchedule);
            alg.Start();


            Console.ReadLine();
        }

        static void alg_NewBestSchedule(object sender, AlgorithmEventArgs e)
        {
            Console.WriteLine("New best: " + e.Population + " Fitness = " + e.BestSchedule.GetFitness());
        }
    }
}
